package com.woniu.command.handcommand;

import com.woniu.command.Command;
import com.woniu.command.handler.HandCommandHandler;
import com.woniu.outlet.po.ProcessHandover;
import com.woniu.util.ApplicationContextHolder;

public class DelHandCommand implements Command<Integer> {
    private HandCommandHandler handler;

    public DelHandCommand ( ) {
        //ApplicationContextHolder.getApplicationContext()拿到ApplicationContext
        this.handler = ApplicationContextHolder.getApplicationContext()
                .getBean(HandCommandHandler.class);
    }

    @Override
    public void execute (Integer id) {
        handler.delProcessHandover(id);
    }
}
